#pragma once

#include "BasicType.h"
//#include "TimelineObject.h"
#include "Pool.h"

namespace LightPlayer {

	class SceneObject;
	class TimelineObject;
	class LightAbstractRenderer;

	typedef dictionary<uint16,SceneObject*> display_list_type;
	
	class DisplayList{
	public:
		display_list_type					list;

		SceneObject*& operator[]( const uint16& key ){
			return list[key];
		}
		void clear(){
			list.clear();
		}

		void draw(LightAbstractRenderer* pRenderer);
	};

};
